package com.bjkcst.baselib.utils;

import android.provider.Settings;

import com.bjkcst.baselib.KcstApplication;

/**
 * @author: glc.
 * Date: 2023/3/20  21:51
 * Description:
 */
public class SystemSetting {


    /**
     * 设置屏幕常亮
     */
    public static void setScreenAlwaysOn(){
        Settings.System.putInt(KcstApplication.getApplication().getContentResolver(),
                    Settings.System.SCREEN_OFF_TIMEOUT, Integer.MAX_VALUE);
    }
}
